<%@ page contentType="text/html;charset=UTF-8"%>

<%@ page import="org.slf4j.Logger,org.slf4j.LoggerFactory" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>打开的文件</title>
</head>

<body>

打开的文件：<%= java.io.FileInputStream.openedFiles.size() %>(in) <%= java.io.FileOutputStream.openedFiles.size() %>(out)
<%
	Logger logger = LoggerFactory.getLogger("500.jsp");
	if (java.io.FileInputStream.openedFiles.size() > 0) {
		for (Exception e : java.io.FileInputStream.openedFiles.values()) {
			logger.error(e.getMessage(), e);
		}
	}
	
	if (java.io.FileOutputStream.openedFiles.size() > 0) {
		for (Exception e : java.io.FileOutputStream.openedFiles.values()) {
			logger.error(e.getMessage(), e);
		}
	}
%>

</body>
</html>
